package o;

import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;

public class cmx {
    private static cmx ˊ;
    private cvy ˎ;

    private cmx() {
        fhz ˋ = fho.ˏ().ˋ("ServerReqKit");
        if (ˋ != null) {
            this.ˎ = (cvy) ˋ.ॱ(cvy.class);
        } else {
            Logger.e("ServerAgent", "wishlist create failed");
        }
    }

    public static synchronized cmx ˎ() {
        cmx o_cmx;
        synchronized (cmx.class) {
            if (ˊ == null) {
                ˊ = new cmx();
            }
            o_cmx = ˊ;
        }
        return o_cmx;
    }

    public AsyLoader ˏ(cvt o_cvt, IServerCallBack iServerCallBack) {
        if (this.ˎ != null) {
            return this.ˎ.ˊ(o_cvt, iServerCallBack);
        }
        Logger.e("ServerAgent", "invokeServer(request, callback) iServerAgent == null");
        return null;
    }
}
